home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / AIAT / Examples / Sources / PPAsyncHFSStore / PPAsyncHFSStoreStream.h < prev   
Encoding:
Text File  |  1998-04-16  |  1.2 KB  |  42 lines  |  [TEXT/CWIE]

  1. // PPAsyncHFSStoreStream.h
  2. //    Copyright:    © 1996 - 1998 by Apple Computer, Inc., all rights reserved.
  3. // Implements IAStoreStream for asynchronous access to a Macintosh HFS file.
  4.  
  5. #pragma once
  6. #include "HFSStoreStream.h"
  7.  
  8. class PPAsyncHFSStoreStream : public HFSStoreStream {
  9. public:
  10.                 PPAsyncHFSStoreStream(short vRef, long dirId, const StringPtr fileName,
  11.                                OSType creator = 'NtSc', OSType fileType = 'NInd');
  12.                 
  13.                 ~PPAsyncHFSStoreStream();               
  14.                 //PPAsyncHFSStoreStream(short vRef, long dirId, const StringPtr fileName,
  15.                 //               OSType creator, OSType fileType, bool isOpen, bool isWritable, 
  16.                 //               short fRefNum);
  17.  
  18.                 // PPAsyncHFSStoreStream(PPAsyncHFSStoreStream& s) : HFSStoreStream(s){}
  19.  
  20.                 virtual IAStoreStream*    Clone();
  21.                 void GetFSSpec(FSSpec *fileSpec);
  22.                 
  23. protected:
  24.  
  25.                                
  26.                 PPAsyncHFSStoreStream(short vRef, long dirId, const StringPtr fileName,
  27.                                OSType creator, OSType fileType, bool isOpen, bool isWritable, 
  28.                                short fRefNum);
  29.  
  30.                 void        Write(uint32 address, const byte* data, uint32 length);
  31.                 uint32        Read(uint32 address, byte* data,  uint32 length);
  32.  
  33. };
  34.  
  35.  
  36.  
  37.  
  38. class IAStorage;
  39.  
  40. IAStorage* MakePPAsyncHFSStorage(short vRef, long dirId, const StringPtr name, OSType creator, OSType t);
  41.  
  42.